def outer(n1):
    def inner(n2):
        nonlocal n1
        n1 += n2
        print(n1)

    return inner


fn = outer(100)
fn(200)
fn(300)
fn(500)
fn(100000000)
